package com.jl.smartcard.ui.views.project;

import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;

import com.jl.smartcard.ui.ImageShop;


public class ViewLabelProvider extends LabelProvider {

	@Override
	public String getText(Object obj) {
		return obj.toString();
	}

	@Override
	public Image getImage(Object obj) {
		if (obj instanceof TreeFolder)
			return ImageShop.get("folder_16");
		return ImageShop.get("file_16");
	}
}
